from rest_framework import serializers


class ImageProcessingRequestSerializer(serializers.Serializer):
    """
    图片处理请求序列化器
    """
    bucket_name = serializers.CharField(
        required=True,
        help_text="MinIO存储桶名称"
    )
    image_name = serializers.CharField(
        required=True,
        help_text="图片文件名"
    )


class ImageProcessingResponseSerializer(serializers.Serializer):
    """
    图片处理响应序列化器
    """
    content = serializers.CharField(
        help_text="生成的图文内容"
    )
    image_url = serializers.CharField(
        help_text="图片URL"
    )
    original_text = serializers.CharField(
        help_text="从图片生成的原始文本"
    )